Release 10.1A: OpenEdge Data Management:
Database Administration
Spin Lock Retries (-spin)
Operating systemand syntax UNIXWindows-spinn Usewith Maximumvalue Minimumvalue Single-userdefault Multi-userdefault DBS – 0 – 10,000, or
6000 * # CPUs1
1For single CPU systems, the default is 10,000. For multi-CPU systems, the default is 6000 * # of CPUs.
nThe number of times a process tries to acquire a latch before pausing.
Use Spin Lock Retries (-
spin) to set a value to use the spin lock mechanism or a system of semaphores and queues. If the value ofnis greater than 0, a spin lock algorithm is used for shared-memory data structures. When a process has to lock a shared-memory structure, the process tries up tontimes to acquire the latch for that structure. If it has not acquired the latch inntries, then the process pauses, or naps. The length of the pause increases gradually if the process repeatedly fails to acquire a latch. After the allotted nap time, the process wakes up and tries to acquire the lock again. If it fails to acquire the lock, it will retry up to the number of tries specified byn.If the value of
nis 0, a system of semaphores and queues is used instead of spin locks. The spin lock algorithm is much more efficient than using semaphores when you have multiple processors.On multi-processor machines, the default value is 6000 * # of CPUs. If this causes too much CPU usage, reduce the value. If you have many fast processors, a value as high as 10,000 * # of CPUs might be effective.
You can evaluate the -
spinvalues through the PROMON utility’s R&D options. See the "PROMON R&D Advanced Options" section. The -spinparameter controls the performance indicator called resource waits. By setting the -spinvalue higher, you can reduce the resource waits. Note that when setting the -spinvalue higher ceases to reduce the resource waits, continuing to set it higher can adversely effect CPU utilization. To view the resource waits value:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |